#pragma once
#include "PointExt.h"
class IBezierCurve
{
public:
	IBezierCurve(void);
	~IBezierCurve(void);

	CPointExt* mPoints;
	CPointExt startPoint;
	CPointExt endPoint;

	virtual CPointExt B(double t) = 0;
	virtual int getCurvePointCount() = 0;
	virtual CString getTitle() = 0;

	void setStartPoint(CPointExt startPoint);
	void setEndPoint(CPointExt startPoint);

	void drawStartPoint(CDC* pDC);
	void drawEndPoint(CDC* pDC);
	void drawLine(CDC* pDC);
	void drawControlPoint(CDC* pDC);
	void drawTitle(CDC* pDC);
};

